<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    const m=new Map()
    m.set(NaN,1).set(NaN,2)
    console.log(m);
    //如果只需要key->value的结构，或者需要字符串以外的值做键，用map更合适
    //只有模拟现实世界的实体时，才使用对象
  </script>
</body>
</html>